//
//  MainManagerButton.m
//  LazyCat
//
//  Created by jike on 16/9/23.
//  Copyright © 2016年 zhanshu. All rights reserved.
//

#import "MainManagerButton.h"
#define radio (ScreenWidth / 375.0)
@implementation MainManagerButton

- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        self.titleLabel.font = [UIFont systemFontOfSize:13];
        self.titleLabel.textAlignment = NSTextAlignmentCenter;
        [self setTitleColor:SetColor(51, 51, 51, 1) forState:UIControlStateNormal];
        [self setTitleColor:MainColor forState:UIControlStateSelected];
    }
    return self;
}

-(CGRect)imageRectForContentRect:(CGRect)contentRect{
    return CGRectMake((contentRect.size.width - 37 * radio) / 2.0, 25 * radio, 37 * radio, 37 * radio);
}
- (CGRect)titleRectForContentRect:(CGRect)contentRect{
    return CGRectMake(0, (contentRect.size.height - (22 + 13) * radio), contentRect.size.width, 13);
}
@end
